<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">
    <div class="row">
        <div class="col-md-12">
            <!-- START BORDERED TABLE SAMPLE -->
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">{{'回复列表' | dyLanguage}}</h3>
                </div>
                <div>
                    <div class="panel-body">
                        <p>{{'本页面可对评论下的回复进行查询、管理等操作。' | dyLanguage}}</p>
                    </div>
                    <div class="panel-body table-responsive" style="max-height: 500px;overflow-y: auto;">
                        <table class="table table-striped table-bordered" ng-show="replyList.length>0">
                            <thead>
                            <tr>
                                <th width="200px">{{'用户信息' | dyLanguage}}</th>
                                <th>{{'回复内容' | dyLanguage}}</th>
                                <th>{{'回复时间' | dyLanguage}}</th>
                                <th width="150px">{{'操作' | dyLanguage}}</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="reply in replyList | orderBy:['active','sort']">
                                <td>
                                    <ul>
                                        <li>{{'用户昵称：' | dyLanguage}}{{reply.user.nickName}}</li>
                                        <li>{{'手机：' | dyLanguage}}{{reply.user.contact.mobile || "无"}}</li>
                                        <li ng-show="user.roleCode == 'ROLE_ORGANIZATION_SERVICE'">{{'企业名称：' | dyLanguage}}{{reply.user.organizationBrief.name || "无"}}</li>
                                    </ul>
                                </td>
                                <td>{{reply.content}}</td>
                                <td>{{reply.createDate.toDateTime()}}</td>
                                <td>
                                    <a href="javascript:void(0)" ng-show="!reply.active" ng-click="setReplyValid(reply)">{{'设为有效' | dyLanguage}}</a>
                                    <a href="javascript:void(0)" ng-show="!!reply.active" ng-click="setReplyInvalid(reply)">{{'设为无效' | dyLanguage}}</a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-info" ng-click="refreshForumReply()"><i class="fa fa-refresh"></i>{{'刷新' | dyLanguage}}</button>
                    </div>
                </div>
            </div>
            <!-- END BORDERED TABLE SAMPLE -->
        </div>
    </div>
    <!-- END PAGE CONTENT WRAPPER -->
</div>